function chooseShippingOption(method_id){
		document.getElementById('selectShippingMethod').value = method_id;
	}
	function chooseBillingOption(method_id){
		document.getElementById('selectBillingMethod').value=method_id;
	}
	function choosePaymentOption(option) {
		var checked = document.getElementById(option).checked;
		var instId = document.getElementById(option).value;
		if (checked) {
			document.getElementById("selectPaymentMethod").value = instId;
			 
			//Hide other options
			for (var i in paymentOptionList) {
				if (option != paymentOptionList[i]) {
					document.getElementById("pay_" + paymentOptionList[i]).style.display = "none";
					document.getElementById(paymentOptionList[i]).checked = false;
				}
			}
			//show the instruction
			document.getElementById("block_" + instId).style.display = "block";
		} else {
		   document.getElementById("selectPaymentMethod").value = "";
		   //Uncheck, show other options again
		   for (var i in paymentOptionList) {
				document.getElementById("pay_" + paymentOptionList[i]).style.display = "block";
				document.getElementById(paymentOptionList[i]).checked = false;
				var elt = document.getElementById(paymentOptionList[i]).value;
				document.getElementById("block_"+elt).style.display = "none";
			}
		}
	}
	function show(elid) {
		var checkvisible = document.getElementById(elid).style.display;
		if (checkvisible == "none") {
			document.getElementById(elid).style.display = "block";
		} else {
			document.getElementById(elid).style.display = "none";
		}
	}